package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.WorkAgentImage;
import www.woniuxy.com.class112.entity.WorkAgentImageExample;

public interface WorkAgentImageMapper {
    long countByExample(WorkAgentImageExample example);

    int deleteByExample(WorkAgentImageExample example);

    int deleteByPrimaryKey(Long id);

    int insert(WorkAgentImage record);

    int insertSelective(WorkAgentImage record);

    List<WorkAgentImage> selectByExample(WorkAgentImageExample example);

    WorkAgentImage selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") WorkAgentImage record, @Param("example") WorkAgentImageExample example);

    int updateByExample(@Param("record") WorkAgentImage record, @Param("example") WorkAgentImageExample example);

    int updateByPrimaryKeySelective(WorkAgentImage record);

    int updateByPrimaryKey(WorkAgentImage record);
    @Select("select * from work_agent_image where work_id=#{id}")
    List<WorkAgentImage> selectByWorkId(Long id);
}